package cc.admin.modules.wea.entity;

import java.io.Serializable;
import java.util.Date;

import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import cc.admin.poi.excel.annotation.Excel;
import cc.admin.common.aspect.annotation.Dict;

/**
 * @Description: 海雾预警表
 * @Author: cc-admin
 * @Date:   2024-09-02
 * @Version: V1.0.0
 */
@Data
@TableName("wea_sea_fog")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wea_sea_fog对象", description="海雾预警表")
public class WeaSeaFog {

	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private String id;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private String platformId;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private String key;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private Date reportDate;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private Date forecastDate;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private String mark;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private String tenantId;

	public WeaSeaFog() {}

	public WeaSeaFog(JSONObject json) {
		this.id = json.getString("id");
		this.platformId = json.getString("platformId");
		this.key = json.getString("key");
		this.reportDate = json.getDate("reportdate");
		this.forecastDate = json.getDate("forecastdate");
		this.mark = json.getString("mark");
	}
}
